package uk.ac.ebi.bioinvindex.model.impl.processing;

/**
 * User: Nataliya Sklyar (nsklyar@ebi.ac.uk)
 * Date: Oct 8, 2007
 */
public enum AssayTypes {
	TRANSCRIPTOMICS("TRANSCRIPTOMICS"),
	METABOLOMICS("METABOLOMICS"),
	PROTEOMICS("PROTEOMICS");

	private String name;

	AssayTypes(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public AssayTypes typeOf(String name) {
		for (int i = 0; i < AssayTypes.values().length; i++) {
			AssayTypes type = AssayTypes.values()[i];
			if (type.getName().equalsIgnoreCase(name)) {
				return type;
			}
		}
		throw new IllegalArgumentException("Unlnown assay type");
	}
}

